﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Configuration;
using Zxb.DayWork.Core;

namespace Zxb.DayWork.Logic
{
    public abstract class BatchWorker : IRun
    {
        protected abstract void ReadData();

        protected abstract void ProcessData();

        protected abstract void WriteData();

        public void Run()
        {
            ReadData();
            ProcessData();
            WriteData();
        }
    }
}
